package com.fqgj.sentry.manage;


import com.fqgj.sentry.manage.dao.McPermissionDao;
import com.fqgj.sentry.manage.entity.McPermissionEntity;
import com.fqgj.sentry.manage.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by liupengpeng
 *
 * @description
 * @create 2017-07-13 下午5:37
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private McPermissionDao permissionDao;

    @Override
    public List<McPermissionEntity> findListByMenuId(Long menuId) {
        return permissionDao.findListByMenuId(menuId);
    }

    @Override
    public List<McPermissionEntity> selectList() {
        return permissionDao.selectList();
    }

    @Override
    public McPermissionEntity selectOneById(Long permissionId) {
        return permissionDao.selectByPrimaryKey(permissionId);
    }

}
